<%= form_for(@nas) do |f| %>
  <% if @nas.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@nas.errors.count, "error") %> prohibited this nas from being saved:</h2>

      <ul>
      <% @nas.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :nasname %><br>
    <%= f.text_field :nasname %>
  </div>
  <div class="field">
    <%= f.label :shortname %><br>
    <%= f.text_field :shortname %>
  </div>
  <div class="field">
    <%= f.label :types %><br>
    <%= f.text_field :types %>
  </div>
  <div class="field">
    <%= f.label :ports %><br>
    <%= f.number_field :ports %>
  </div>
  <div class="field">
    <%= f.label :secret %><br>
    <%= f.text_field :secret %>
  </div>
  <div class="field">
    <%= f.label :server %><br>
    <%= f.text_field :server %>
  </div>
  <div class="field">
    <%= f.label :community %><br>
    <%= f.text_field :community %>
  </div>
  <div class="field">
    <%= f.label :description %><br>
    <%= f.text_field :description %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
